﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.DesignServer.Data
{
    [MessageContract]
    public class ItemStatus
    {
        [MessageBodyMember]
        public Guid ItemId { get; set; }

        [MessageBodyMember]
        public Guid ItemParentId { get; set; }

        [MessageBodyMember]
        public Guid ItemFolderId { get; set; }

        [MessageBodyMember]
        public string ItemName { get; set; }

        [MessageBodyMember]
        public int ItemVersion { get; set; }

        [MessageBodyMember]
        public int ItemType { get; set; }

        [MessageBodyMember]
        public bool IsEditing { get; set; }

        [MessageBodyMember]
        public string Editor { get; set; }

        [MessageBodyMember]
        public bool ExistInServer { get; set; }

        [MessageBodyMember]
        public DateTime UpdateTime { get; set; }
        public ItemStatus()
        {

        }
        public ItemStatus(Guid itemId, string itemName, int itemVersion, Guid parentId, Guid folderId, int itemType, bool isEditing, string editor, bool existInServer)
        {
            this.ItemId = itemId;
            this.ItemName = itemName;
            this.ItemVersion = itemVersion;
            this.ItemParentId = parentId;
            this.ItemFolderId = folderId;
            this.ItemType = itemType;
            this.IsEditing = isEditing;
            this.Editor = editor;
            this.ExistInServer = existInServer;
        }
    }
}
